home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 1341 < prev    next >
Encoding:
Internet Message Format  |  1996-08-06  |  1.7 KB

  1. Path: solon.com!not-for-mail
  2. From: seebs@solutions.solon.com (Peter Seebach)
  3. Newsgroups: comp.lang.ada,comp.lang.c++,comp.lang.c,comp.lang.modula3,comp.lang.modula2,comp.lang.eiffel
  4. Subject: Re: Hungarian notation
  5. Date: 10 Jan 1996 09:15:26 -0600
  6. Organization: Usenet Fact Police (Undercover)
  7. Message-ID: <4d0l6e$61u@solutions.solon.com>
  8. References: <30C40F77.53B5@swsbbs.com> <4cf8hf$8fe@hopi.gate.net> <4cgq30$c0v@weck.brokersys.com> <4cvu68$2jb@macaw.cyberport.com>
  9. NNTP-Posting-Host: solutions.solon.com
  10.  
  11. In article <4cvu68$2jb@macaw.cyberport.com>,
  12. Warren Young <tangent@cyberport.com> wrote:
  13. >This is one of the reasons HN is useful.  By forcing the programmer to
  14. >visit every place that the variable is used, the programmer has an
  15. >opportunity to check the semantics of the variable's use.  If the type
  16. >of the variable has changed, chances are that the semantics have
  17. >changed as well.  How many times have you changed a variable's type to
  18. >fix something, only to break something else?
  19.  
  20. Never that I can remember.  The effective semantics of a value should be a
  21. function of how it's being used.  I am unlikely to change the type in a way
  22. that invalidates existing use without a significant rewrite involved.
  23. After all, if the basic way a value is used is changing, you're not changing a
  24. type, you're changing which value you use - and you should be renaming, not
  25. just changing a meaningless prefix.
  26.  
  27. -s
  28. -- 
  29. Peter Seebach - seebs@solon.com - Copyright 1995 Peter Seebach.
  30. C/Unix proto-wizard -- C/Unix questions? Send mail for help.  No, really!
  31. Using trn?  Weird new newsgroup problem?  I know the fix!  Email me!
  32. The *other* C FAQ - ftp taniemarie.solon.com /pub/c/afq - Not A Flying Toy
  33.